package com.Image.util;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class getHight {
public static int getH(File file,int w){
	int h=0;
	BufferedImage bi = null;
	try {
	bi = ImageIO.read(file);
	int width = bi.getWidth();
	int height = bi.getHeight();
	h=(height*w)/width;
	} catch (IOException e) {
	e.printStackTrace();
	}
	return h;
}
}
